<template>
  <el-form
    ref="formInline"
    :inline="true"
    :model="formInline"
    label-width="100px"
    class="certificateForm">
    <el-form-item
      label="产品包编码"
      prop='code'>
      <el-input
        v-model="formInline.code"
        placeholder="请输入"/>
    </el-form-item>

    <el-form-item
      label="产品包名(中)"
      prop='nameCN'>
      <el-input
        v-model="formInline.nameCN"
        placeholder="请输入"/>
    </el-form-item>

    <el-form-item
      label="产品包名(英)"
      prop='nameEN'>
      <el-input
        v-model="formInline.nameEN"
        placeholder="请输入"/>
    </el-form-item>

    <el-form-item
      label="手术类型"
      prop='typeSurgery'>
      <el-input
        v-model="formInline.typeSurgery"
        placeholder="请输入"/>
        <!-- <el-select
        v-model="formInline.typeSurgery"
        placeholder="请选择">
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value"/>
      </el-select> -->
    </el-form-item>

    <el-form-item
      label="备注"
      prop='remark'>
      <el-input
        v-model="formInline.remark"
        placeholder="请输入"/>
    </el-form-item>

    <el-form-item
      label="启用"
      prop='status'>
      <el-select
        v-model="formInline.status"
        placeholder="请选择">
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value"/>
      </el-select>
    </el-form-item>

    <el-form-item class="searchButtonList">
      <el-button
        class="submit"
        @click.stop="serach">查询</el-button>
      <el-button
        class="reset"
        @click="reset('formInline')">重置</el-button>
    </el-form-item>

  </el-form>
</template>

<script>
export default {
  name: 'ProductControlSearchForrm',
  data () {
    return {
      formInline: {
        nameCN: null,
        nameEN: null,
        code: null,
        typeSurgery: null,
        // medicalRecordDescOne: null,
        // medicalRecordDescTwo: null,
        remark: null,
        status: null
      },
      options: [{
        value: '1',
        label: '是'
      }, {
        value: '0',
        label: '否'
      }],
      value: ''
    }
  },
  methods: {
    serach () {
      this.$emit('searchForm', this.formInline)
    },
    reset (formName) {
      this.$refs[formName].resetFields()
      this.$emit('resetForm', 'formInline')
    }
  }
}
</script>

<style lang="less" >
  .certificateForm {
    .el-form-item {
      margin-right: 16px;
      margin-bottom: 16px;
    }

    .el-input__inner {
      border-radius: 0 !important;
      height: 34px;
      line-height: 34px;
      width: 211px;
    }

    .el-form-item__label {
      padding-right: 10px;
    }

    .searchButtonList button {
      width: 74px;
      height: 34px;
      cursor: pointer;
    }

    .submit {
      background: rgba(35, 113, 197, 1);
      border: 0;
      color: #fff;
    }

    .reset {
      background: rgba(255, 255, 255, 1);
      border: 1px solid rgba(221, 223, 225, 1);
    }
  }

</style>
